<div class="livres view">
<h2><?php echo __('Livre'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($livre['Livre']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Titre'); ?></dt>
		<dd>
			<?php echo h($livre['Livre']['titre']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Resume'); ?></dt>
		<dd>
			<?php echo h($livre['Livre']['resume']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Date De Sortie'); ?></dt>
		<dd>
			<?php echo h($livre['Livre']['date_de_sortie']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Date Insert'); ?></dt>
		<dd>
			<?php echo h($livre['Livre']['date_insert']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Livre'), array('action' => 'edit', $livre['Livre']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Livre'), array('action' => 'delete', $livre['Livre']['id']), array(), __('Are you sure you want to delete # %s?', $livre['Livre']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Livres'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Livre'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Editions'), array('controller' => 'editions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Edition'), array('controller' => 'editions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Auteurs'), array('controller' => 'auteurs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Auteur'), array('controller' => 'auteurs', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Editions'); ?></h3>
	<?php if (!empty($livre['Edition'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Livre Id'); ?></th>
		<th><?php echo __('Date'); ?></th>
		<th><?php echo __('Editeur Id'); ?></th>
		<th><?php echo __('Image'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php print_r($livre);?>
	<?php foreach ($livre['Edition'] as $edition): ?>
		<tr>
			<td><?php echo $edition['id']; ?></td>
			<td><?php echo $edition['livre_id']; ?></td>
			<td><?php echo $edition['date']; ?></td>
			<td><?php echo $edition['editeur_id']; ?></td>
			<td><?php echo $edition['image']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Voir'), array('controller' => 'editions', 'action' => 'view', $edition['id'])); ?>
				<?php echo $this->Html->link(__('Editer'), array('controller' => 'editions', 'action' => 'edit', $edition['id'])); ?>
				<?php echo $this->Form->postLink(__('Effacer'), array('controller' => 'editions', 'action' => 'delete', $edition['id']), array(), __('Are you sure you want to delete # %s?', $edition['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Edition'), array('controller' => 'editions', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Auteurs'); ?></h3>
	<?php if (!empty($livre['Auteur'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Auteur'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($livre['Auteur'] as $auteur): ?>
		<tr>
			<td><?php echo $auteur['id']; ?></td>
			<td><?php echo $auteur['prenom_nom']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Voir'), array('controller' => 'auteurs', 'action' => 'view', $auteur['id'])); ?>
				<?php echo $this->Html->link(__('Editer'), array('controller' => 'auteurs', 'action' => 'edit', $auteur['id'])); ?>
				<?php echo $this->Form->postLink(__('Effacer'), array('controller' => 'auteurs', 'action' => 'delete', $auteur['id']), array(), __('Are you sure you want to delete # %s?', $auteur['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Auteur'), array('controller' => 'auteurs', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
